/**
 * 
 */
package cz.cvut.fit.crhonjar.mi.run.hawera.tree.statement;

import cz.cvut.fit.crhonjar.mi.run.hawera.tree.TreeVisitor;
import cz.cvut.fit.crhonjar.mi.run.hawera.tree.expression.FunctionCallTree;

/**
 * @author Jarec
 * 
 */
public class FunctionTree extends StatementTree {

	private FunctionCallTree functionCall;

	/**
	 * @param functionCall
	 */
	public FunctionTree(FunctionCallTree functionCall) {
		super();
		this.log.debug("> FunctionTree");
		if (functionCall == null) {
			final String message = "Cannot construct funtion tree with null function call!";
			this.log.error(message);
			throw new NullPointerException(message);
		}
		this.functionCall = functionCall;
		this.log.debug("< FunctionTree");
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * cz.cvut.fit.crhonjar.mi.run.hawera.tree.TreeVisitorAcceptor#accept(cz
	 * .cvut.fit.crhonjar.mi.run.hawera.tree.TreeVisitor)
	 */
	@Override
	public void accept(TreeVisitor visitor) {
		// TODO Auto-generated method stub

	}

	/**
	 * @return the functionCall
	 */
	public FunctionCallTree getFunctionCall() {
		this.log.debug(">< getFunctionCall");
		return this.functionCall;
	}

}
